package org.nerve.okhttp3.cookie;

import okhttp3.Cookie;
import okhttp3.HttpUrl;

import java.util.List;

/**
 * Created by zengxm on 2016/7/25.
 */
public interface ICookieStore {
	void add(HttpUrl url, Cookie cookie);

	List<Cookie> get(HttpUrl url);

	/**
	 * 根据host以及name获取cookie
	 * @param host
	 * @param name
	 * @return
	 */
	Cookie get(String host, String name);

	/**
	 * 保存cookie信息
	 */
	void persistent();
}